package com.blb.common.entity;

import com.blb.common.utils.DBField;

import java.time.LocalDateTime;

/**
 * @author lvtian
 * @date 2022/12/28 11:09
 */
public class ExamRecord {
    private int id;
    @DBField(fieldName = "user_id")
    private long userId;
    @DBField(fieldName = "question_set_id")
    private int questionSetId;
    @DBField(fieldName = "exam_date")
    private LocalDateTime examDate;
    private int point;

    private String username;
    @DBField(fieldName = "question_set_title")
    private String questionSetTitle;

    public ExamRecord(int id, long userId, int questionSetId, LocalDateTime examDate, int point) {
        this.id = id;
        this.userId = userId;
        this.questionSetId = questionSetId;
        this.examDate = examDate;
        this.point = point;
    }

    public ExamRecord() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getQuestionSetId() {
        return questionSetId;
    }

    public void setQuestionSetId(int questionSetId) {
        this.questionSetId = questionSetId;
    }

    public LocalDateTime getExamDate() {
        return examDate;
    }

    public void setExamDate(LocalDateTime examDate) {
        this.examDate = examDate;
    }

    public int getPoint() {
        return point;
    }

    public void setPoint(int point) {
        this.point = point;
    }

    public String getQuestionSetTitle() {
        return questionSetTitle;
    }

    public void setQuestionSetTitle(String questionSetTitle) {
        this.questionSetTitle = questionSetTitle;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
